﻿<UserControl x:Class="Indigo.Quibbler.Controls.HeadlineControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="Auto" Width="Auto">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.4*"/>
            <ColumnDefinition Width="0.2*"/>
            <ColumnDefinition Width="0.4*"/>
        </Grid.ColumnDefinitions>
        <Grid Grid.Column="0" x:Name="gridLeftNews">
            <Grid.RowDefinitions>
                <RowDefinition Height="0.3*"/>
                <RowDefinition Height="0.8*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.604,0.591" StartPoint="0.055,0.069">
                        <GradientStop Color="#FF008FD3" Offset="0"/>
                        <GradientStop Color="#FF1FA1DE" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
            <Image x:Name="imgNewsLeft" Grid.Column="0" Grid.RowSpan="2" MaxWidth="100" Source="{Binding Image}" VerticalAlignment="Bottom" Stretch="Fill"/>
            <TextBlock x:Name="tbNewsLeft" Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Left" FontFamily="/Quibbler - Universal News Reader;Component/Fonts/#SapientSansMedium" FontSize="12" Foreground="White" Margin="10" TextTrimming="WordEllipsis" TextWrapping="Wrap" Text="{Binding Headline}"/>
        </Grid>
        <Grid Grid.Column="1" x:Name="gridCenterNews">
            <Grid.RowDefinitions>
                <RowDefinition Height="0.3*"/>
                <RowDefinition Height="0.8*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Fill="#FF91278F"/>
            <Image x:Name="imgNewsCenter" Grid.Column="0" Grid.Row="1" Stretch="Fill" MaxWidth="80" Source="{Binding Image}" VerticalAlignment="Center" Margin="0,0,0,0"/>
            <TextBlock x:Name="tbNewsCenter" Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Left" FontFamily="/Quibbler - Universal News Reader;Component/Fonts/#SapientSansMedium" FontSize="12" Foreground="White" Margin="10" TextTrimming="WordEllipsis" TextWrapping="Wrap" Text="{Binding Headline}"/>
        </Grid>
        <Grid Grid.Column="2" x:Name="gridRightNews">
            <Grid.RowDefinitions>
                <RowDefinition Height="0.3*"/>
                <RowDefinition Height="0.8*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.604,0.591" StartPoint="0.055,0.069">
                        <GradientStop Color="#FF909F8A" Offset="0"/>
                        <GradientStop Color="#FF9BA797" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
            <Image x:Name="imgNewsRight" Grid.Column="1" Grid.RowSpan="2" Stretch="Fill" MaxWidth="100" Source="{Binding Image}"/>
            <TextBlock x:Name="tbNewsRight" Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="12" Foreground="Black" Margin="10" TextTrimming="WordEllipsis" TextWrapping="Wrap" FontFamily="/Quibbler - Universal News Reader;Component/Fonts/#SapientSansMedium" Text="{Binding Headline}"/>
        </Grid>
    </Grid>
</UserControl>
